// express模块
const express = require('express');
// 创建路由器对象
const router = new express.Router();
// 创建路由
router.get('/register', (req, res) => {
    console.log(req.query);
    res.send('注册成功');
})
router.get('/login', (req, res) => {
    console.log(req.query);
    res.send('登录成功');
})

// 暴露出去
module.exports = router;